java Client localhost Robust